﻿namespace UBlockly.Graphic
{
    /// <summary>
    /// 描述块的名字和分类
    /// </summary>
    [System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public sealed class BlockDescribeAttribute : System.Attribute
    {
        public string[] BlockDesc;
        public int Classify;
        public BlockDescribeAttribute(int classifly, params string[] desc)
        {
            this.Classify = classifly;
            if (desc.Length != 0)
            {
                this.BlockDesc = new string[desc.Length];
                desc.CopyTo(BlockDesc, 0);
            }
        }
    }
}
